From: Keir Fraser Date: Thu, 25 Jun 2009 12:15:32 +0000 (+0100) Subject: tools: fix inverted logic check X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~13685 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=d7e7ef68594c45197932d4e960603a670657b809;p=xen.git tools: fix inverted logic check Signed-off-by: Christoph Egger --- diff --git a/tools/python/xen/xend/XendConfig.py b/tools/python/xen/xend/XendConfig.py index 398e73e78e..9cced961a8 100644 --- a/tools/python/xen/xend/XendConfig.py +++ b/tools/python/xen/xend/XendConfig.py @@ -463,9 +463,11 @@ class XendConfig(dict): if 'device_model' not in self['platform']: self['platform']['device_model'] = auxbin.pathTo("qemu-dm") # device_model may be set to 'qemu-dm' or 'stubdom-dm' w/o a path - if os.path.dirname(self['platform']['device_model']) != "": + if os.path.dirname(self['platform']['device_model']) == "": self['platform']['device_model'] = \ auxbin.pathTo(self['platform']['device_model']) + if not os.path.exists(self['platform']['device_model']): + raise VmError("device model '%s' not found" % str(self['platform']['device_model'])) if self.is_hvm(): if 'timer_mode' not in self['platform']: